package com.oweight.sagacious.auth.client.configuration;

import com.oweight.sagacious.auth.client.config.ServiceAuthConfig;
import com.oweight.sagacious.auth.client.config.UserAuthConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * 加载配置
 *
 * @author SAGE
 * @version v1 2019/10/16 13:43
 */
@Configuration
@ComponentScan({"com.oweight.sagacious.auth.client"})
public class AutoConfiguration {

    @Bean
    ServiceAuthConfig getServiceAuthConfig() {
        return new ServiceAuthConfig();
    }

    @Bean
    UserAuthConfig getUserAuthConfig() {
        return new UserAuthConfig();
    }

}
